package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 类型表
 * </p>
 *
 * @author hpp
 * @since 2021-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sp_type")
public class Type extends Model<Type> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "type_id", type = IdType.AUTO)
    private Integer typeId;

    /**
     * 类型名称
     */
    private String typeName;

    /**
     * 删除时间标志
     */
    private Integer deleteTime;


    @Override
    protected Serializable pkVal() {
        return this.typeId;
    }

}
